package com.alibaba.nacos.api.naming.listener;

import com.alibaba.nacos.api.naming.pojo.Instance;

import java.util.List;

/**
 * @ClassName NamingEvent
 * @Description: TODO
 * @Author linjiahao
 * @Date 2023/2/1
 **/
public class NamingEvent implements Event {
    private String serviceName;
    private String groupName;
    private String clusters;
    private List<Instance> instances;
    private Integer eventType;

    public NamingEvent(String serviceName, List<Instance> instances,Integer eventType) {
        this.serviceName = serviceName;
        this.instances = instances;
        this.eventType = eventType;
    }

    public NamingEvent(String serviceName, String groupName, String clusters, List<Instance> instances,Integer eventType) {
        this.serviceName = serviceName;
        this.groupName = groupName;
        this.clusters = clusters;
        this.instances = instances;
        this.eventType = eventType;
    }

    public String getServiceName() {
        return this.serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public List<Instance> getInstances() {
        return this.instances;
    }

    public void setInstances(List<Instance> instances) {
        this.instances = instances;
    }

    public String getGroupName() {
        return this.groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getClusters() {
        return this.clusters;
    }

    public void setClusters(String clusters) {
        this.clusters = clusters;
    }

    public Integer getEventType() {
        return eventType;
    }

    public void setEventType(Integer eventType) {
        this.eventType = eventType;
    }
}
